package com.leyuangame.core.config;

import com.leyuangame.core.BMDataContext;
import com.leyuangame.core.websocket.GameServer;
import com.leyuangame.core.websocket.handler.GameEventHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.io.IOException;

@Configuration
public class BeanConfig {
    @Bean
    public BMDataContext bmDataContext(){
        return new BMDataContext();
    }
//    @Bean(name="testDemo")
//    public Demo2 generateDemo() {
//        Demo2 demo = new Demo2();
//        demo.setId(12345);
//        demo.setName("test");
//        return demo;
//    }

}
